%% Author : lichuang 

-module(echubby_sup).
-behaviour(supervisor).

-export([init/1]).

-include("echubby.hrl").

init(Args) ->
  QuorumListenerProcess = ?CHILD(echubby_quorum_listener, worker),
  ManagerProcess = ?CHILD_WITH_ARGS(echubby_quorum_manager,
				    worker,
				    Args),
  Processes = lists:flatten([ManagerProcess,
			     QuorumListenerProcess]),
  {ok, {{one_for_one, 1, 10}, Processes}}.
